package com.dayu.gulimall.product.feign;

import com.dayu.common.to.SkuHasStockVo;
import com.dayu.common.to.SkuReductionTo;
import com.dayu.common.to.SpuBoundsTo;
import com.dayu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author dayu
 * @version 1.0
 * @email dayu007@foxmail.com
 * @date 2020/8/4 22:55
 * @description
 */
@FeignClient("gulimall-ware")
public interface WareFeignClient {

    @PostMapping("/ware/waresku/hasstock")
    R hasStock(@RequestBody List<Long> skuIds);


    @PostMapping("/coupon/skufullreduction/saveinfo")
    R saveSkuReduction(@RequestBody SkuReductionTo skuReductionTo);
}
